<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE >
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>新闻列表</title>
<style type="text/css">
body {
    margin: 0px;
    padding: 0px;
    width: 800px;
    margin: 30px auto;
}

.newslist h2 {
    text-align: center;
}

.newsinfo {
    text-align: center;
}

.newscontent {
    text-indent: 2em;
}

.newscontent  a {
    display: block;
    float: right;
}
</style>
</head>
<body>
        <div class="newslist">
            <h2>${news.title}</h2>
            <p class="newsinfo">${news.user.nickname}</p>
            <p class="newscontent">${news.content}</p>
            <p><img src="C:\Users\zxit\workspace\hcCoceral\WebContent\upload\170905102251132.jpg"></p>
            <hr>
        </div>
</body>
</html>